﻿using AutoMapper;
using BCCommon;
using BCCommon.Enums;
using BCDto.Sim.Company.JobTitle;
using BCEntity.Sim.Company.JobTitle;
using BCService.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCService.MapperProfiles.Sim.Company.JobTitle
{
    public class JobTitleProfile : Profile
    {
        public JobTitleProfile()
        {

            //职位
            CreateMap<JobTitleDto, JobTitleEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<JobTitleRequestDto, JobTitlePutDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<JobTitleRequestDto, JobTitleEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<JobTitlePutDto, JobTitleEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<JobTitleEntity, JobTitleDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();

        }
    }
}